package mysql

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UserId     int64   `gorm:"type:int;not null;" json:"user_id"`
	OrderSn    string  `gorm:"type:char(36);not null;unique;" json:"order_sn"`
	HotelName  string  `gorm:"type:varchar(50);not null;" json:"hotel_name"`
	HouseType  string  `gorm:"type:varchar(30);not null;" json:"house_type"`
	Name       string  `gorm:"type:varchar(20);not null;" json:"name"`
	StartTime  string  `gorm:"type:datetime;not null" json:"start_time"`
	EndTime    string  `gorm:"type:datetime;not null" json:"end_time"`
	Num        int     `gorm:"type:int;not null;" json:"num"`
	CountPrice float64 `gorm:"type:decimal(10,2);not null;" json:"count_price"`
	Person     string  `gorm:"type:varchar(20);not null;" json:"person"`
	Status     int     `gorm:"type:int;not null;default:1" json:"status"`
}
